<?php
	list($sql,$all_page) = splitPage("`tbl_discount_type`","1 AND dtype_id NOT IN(6,8) ORDER BY `dtype_id` ASC", 30, $_GET['p']);
	$strPage = fetchPage($all_page,$_GET['p']);
	$query = mysql_query($sql);
	$tp->block('result');
	while($result = mysql_fetch_assoc($query)) {
		$content_id	= $result['dtype_id'];
		$title		= $result['title'];
		$remark		= nl2br($result['remark']);
		$status		= $result['active'] ? 'active' : 'inactive';
		$tp->apply();
	}
	mysql_free_result($query);
?>